﻿<div class="modal-header">
    <h3 class="modal-title">供选择的美食专题</h3>
</div>
<div class="modal-body">

    <div class="row">
        <form class="form-horizontal">
            <div class="col-sm-2 clear-padding">
                <select ng-model="type" class="form-control">
                    <option value="">所有相关</option>
                    <option value="1">标题搜索</option>
                    <option value="2">内容搜索</option>
                </select>
            </div>
            <div class="col-lg-3 clear-padding">
                <div ce-enter="search" class="input-group">
                    <input type="text" class="form-control" ng-model="Name">
                    <span class="input-group-btn">
                        <button class="btn btn-default" ng-click="search(false)" type="button">搜索</button>
                    </span>
                </div>
            </div>
        </form>
    </div>
    <div class="row">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th class="col-sm-1">选择</th>
                <th class="col-sm-2">专题名称</th>
                <th class="col-sm-1">CallKey</th>
                <th class="col-sm-1">阅读数</th>
                <th class="col-sm-1">发布时间</th>
                <th class="col-sm-1">发布人</th>
                <th class="col-sm-1">操作</th>
            </tr>
            </thead>
            <tbody ng-if="!loadingState">
                <tr ng-click="checked(item)" ng-repeat="item in list " class="pointer">
                    <td><input type="radio" ng-checked="item.isChecked" name="thematic" /></td>
                    <td>{{item.Title}}</td>
                    <td>{{item.CallKey}}</td>
                    <td>{{item.ReadTotal}} 次</td>
                    <td>{{item.EventTime|date:'yyyy-MM-dd hh:mm:ss'}}</td>
                    <td>{{item.Publisher}}</td>
                    <td>
                        <button type="button" class="btn btn-success btn-xs">选择</button>
                    </td>
                </tr>
            </tbody>
            <tbody ng-if="loadingState">
                <tr>
                    <td colspan="8" class="text-center">
                        <img width="60" src="/App/images/loading.gif" />
                    </td>
                </tr>
            </tbody>
            <tfoot ng-show="!loadingState">
                <tr>
                    <td colspan="8">
                        <div class="pull-right">
                            <div class="pagination-info">
                                <span class="ng-binding">共有{{total}}条</span>
                                <div class="pagination-info">
                                    <select ng-model="pageTotal" class="form-control" ng-change="search(true)">
                                        <option value="5">5条/页</option>
                                        <option value="">10条/页</option>
                                        <option value="20">20条/页</option>
                                        <option value="30">30条/页</option>
                                    </select>
                                </div>
                            </div>
                            <div class="pagination-info form-group-sm">跳至<input type="text" class="input-group-sm" ng-model="current" ng-change="search(true)" />页</div>
                            <uib-pagination boundary-links="true" total-items="total" ng-model="current" max-size="10" ng-change="search(true)" items-per-page="pageTotal||10"
                                            class="pagination-sm" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
                        </div>
                    </td>
                </tr>
            </tfoot>
        </table>
    </div>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" ng-click="ok()">确定</button>
    <button class="btn btn-warning" ng-click="cancel()">取消</button>
</div>
























